<?php

// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2030 http://www.jmzh1688.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: lxl
// +----------------------------------------------------------------------


namespace app\wx\controller;

use think\Controller;
use think\Db;



class Index extends Controller{
    public function index(){
        return $this->fetch();
    }
    public function order(){
        return $this->fetch();
    }
    public function perfect_login(){
        $openid = input('param.openid');
        $res = Db::name('wxuser')->where('openid',$openid)->find();
        if($res){
            $this->assign('headimgurl',$res['headimgurl']);
        }else{
            $this->assign('headimgurl','');
        }
        $this->assign('openid',$openid);
        return $this->fetch();
    }
}
